package com.ngc.mall.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ngc.mall.bo.OrderSku;
import com.ngc.mall.domain.SkuDomain;
import com.ngc.mall.dto.SkuDTO;
import java.util.*;

public interface ISkuService extends IService<SkuDomain> {

    Boolean createBatchBySpuId(Long id,List<SkuDTO> skuDTOList);

    Long createSku(SkuDomain domain);

    List<SkuDomain> findByIdList(List<Long> skuIdList);

    Boolean reduceSkuStock(Long id,Integer count);

    List<SkuDomain> findBySpuId(Long spuId);

    void recoverStock(OrderSku orderSku);
}
